﻿// --------------------------------------------------------------------------------------------------------------------
// <copyright file="MailSortSettingsViewModel.cs" company="DST Nexdox">
//   Copyright (c) DST Nexdox. All rights reserved.
// </copyright>
// <summary>
//   Defines the MailSortSettingsViewModel type.
// </summary>
// --------------------------------------------------------------------------------------------------------------------

namespace DocProcessingWorkflow.Models.JobsAdmin
{
  using System.Collections.Generic;
  using DocProcessingWorkflow.Models.MailSortSetting;
  using Entities;

  public class MailSortSettingsViewModel
  {
    public MailSortSettingsViewModel()
    {
      this.MailSortSettings = new List<MailSortSettingViewModel>();
    }

    public List<MailSortSettingViewModel> MailSortSettings { get; private set; }

    public void AddSettings(IEnumerable<MailsortSetting> mailSortSettings)
    {
      foreach (var mss in mailSortSettings)
      {
        var mssViewModel = new MailSortSettingViewModel(mss);
        this.MailSortSettings.Add(mssViewModel);
      }
    }
  }
}